//
//  LGSConstant.m
//  LogicSim
//
//  Created by Jeremy Pereira on 21/03/2013.
//
//

#import "LGSConstant.h"
#import "LGSName.h"

@implementation LGSConstant

-(TimeTick) gateDelay
{
    return 0;
}

+(NSArray*) defaultOutputNames
{
    return @[[LGSName nameWithConnectionString: @"out"]];
}

+(LGSName*) outputName
{
    static LGSName* name = nil;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken,
    ^{
        name = [[LGSName alloc] initWithNodePart: nil
                                  connectionPart: @"out"
                                       nodeIndex: LGS_NAME_NO_INDEX
                                 connectionIndex: LGS_NAME_NO_INDEX];
    });
    return name;
}

@end
